<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * DateTime: 2017/6/2 14:56
 */
//本周的第一天和最后一天
$date=new DateTime();
$date->modify('this week');
$first_day_of_week=$date->format('Y.m.d');
echo $first_day_of_week."\n";
$date->modify('this week +6 days');
$end_day_of_week=$date->format('Y.m.d');
echo $end_day_of_week."\n";